package com.steven.exception;

public class Div {
	
	public int div(int a ,int b) throws NegativeException   {
		
		if(b<0)
		 
				throw new NegativeException("除数不能为负数！");
		 
		return a/b; 
		
	}

}
